import {PermissionEntity} from "./permissionEntity";
/**
 * Created by Administrator on 2017/5/15.
 */
export class RoleEditForm {
    id: number
    name: string
    permissionList: PermissionEntity[] = []

    permissionIdList:number[] = [];



    getResult(){
        this.permissionIdList = []
        for(let permission of this.permissionList){
            if(permission.checked){
                this.permissionIdList.push(permission.id)
            }
        }
        return this;
    }
}